//将我们http.js中封装好的  get,post.put,delete  导过来

import { axios_get, axios_post, axios_delete, axios_put } from './http.js'

// 路由拦截
export const before_each_get = p => axios_get("/before_each/", p)

// 获取侧边栏标签
export const menu_list_get = p => axios_get("/menu_list/", p)

// 获取短信验证码
export const send_code_post = p => axios_post("/send_code/", p)

// 获取邮箱验证码
export const send_email_code_post = p => axios_post("/send_email_code/", p)

// 用户找回密码
export const update_pwd_put = p => axios_put("/update_pwd/", p)

// 获取权限列表
export const power_list_get = p => axios_get("/power_list/", p)

// 注册接口
export const register_post = p => axios_post("/register/", p)

// 登录接口
export const login_post = p => axios_post("/login/", p)

// 用户信息接口
export const user_info_get = p => axios_get("/user_info/", p)

// 用户审核接口
export const admin_auditing_put = p => axios_put("/admin_auditing/", p)

// 用户归档接口
export const user_info_delete = p => axios_delete("/user_info/", p)

// 添加用户
export const add_user_post = p => axios_post("/user_info/", p)

// 修改用户信息
export const update_user_put = p => axios_put("/user_info/", p)

// 获取用户公司信息
export const company_info_get = p => axios_get("/company_info/", p)

// 修改用户公司信息
export const update_company_info_put = p => axios_put("/company_info/", p)

// 获取七牛云上传文件token
export const qi_niu_get = p => axios_get("/qi_niu/", p)

// 获取设备
export const genre_list_get = p => axios_get("/genre_list/", p)

// 生成随机货物名
export const fixing_name_get = p => axios_get("/fixing_name/", p)

// 添加货物
export const add_fixing_post = p => axios_post("/add_fixing/", p)

// 获取货物类型
export const fixing_info_get = p => axios_get("/fixing_info/", p)

// 添加标签
export const add_tag_post = p => axios_post("/add_tag/", p)

// 修改标签
export const update_tag_post = p => axios_put("/add_tag/", p)

// 归档标签
export const delete_tag_delete = p => axios_delete("/add_tag/", p)

// 获取标签信息
export const tag_info_get = p => axios_get("/tag_info/", p)

// 获取货物类型信息
export const fix_info_get = p => axios_get("/fix_info/", p)

// 客户信息
export const customer_info_get = p => axios_get("/customer_info/", p)

// 添加客户
export const add_customer_post = p => axios_post("/customer_info/", p)

// 添加运单
export const add_order_post = p => axios_post("/order_info/", p)

// 随机生成一个运单号
export const sui_order_get = p => axios_get("/order_name/", p)

// 获取运单信息
export const order_info_get = p => axios_get("/order_info/", p)

// 发货，修改运单状态，添加货物信息
export const send_order_put = p => axios_put("/order_info/", p)

// 查看运单状态
export const order_status_get = p => axios_get("/order_status/", p)

// 收货
export const take_order_put = p => axios_put("/take_order/", p)

// 统计
export const total_order_get = p => axios_get("/total_order/", p)

// 查询该订单的路线图
export const order_address_get = p => axios_get("/order_address/", p)

// 查询该路线是否有订单
export const add_search_order_get = p => axios_get("/add_search_order/", p)

// 传去发货地，接收有订单来往的收货地及订单详情
export const add_take_order_get = p => axios_get("/add_take_order/", p)

// 回传查询的订单信息
export const acc_order_get = p => axios_get("/acc_order/", p)

// 查看订单温度
export const request_temp_get = p => axios_get("/request_temp/", p)